package com.aichat.ai_chatbackend.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 用户偏好表
 * @TableName user_preference
 */
@TableName(value ="user_preference")
@Data
public class UserPreference implements Serializable {
    /**
     * 偏好ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 偏好键
     */
    private String preferenceKey;

    /**
     * 偏好值
     */
    private String preferenceValue;

    /**
     * 分类
     */
    private String category;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}